{extend name="public/layout" /}
{block name="head_css"}
    <link rel="stylesheet" href="/static/home/css/list.css?v={$version}">
{/block}
{block name="main"}
    <div class="content-area middle-content">
        <div class="tab-wrapper inline-box">
            <div class="tab-title-line inline-box inline-block">
                <a href="{:url('engineering/index',array('order'=>1))}" class="tab-item {if $order eq 1}chosen{/if} inline-block">隔音材料</a>
                <a href="{:url('engineering/index',array('order'=>2))}" class="tab-item {if $order eq 2}chosen{/if} inline-block">声学安装</a>
                <a href="{:url('engineering/index',array('order'=>3))}" class="tab-item {if $order eq 3}chosen{/if} inline-block">声学设计</a>
            </div>
            <div class="jump-btn inline-block">
                <a href="{:url('add')}">立即发布&gt;&gt;&gt;</a>
            </div>
        </div>

        {foreach name='list' item='item'}
            <div class="content-list inline-box">
                <div class="cleft inline-block">
                    <div class="top-line inline-box">
                        <div class="title">{$item.title}</div>
                        <div class="oinfo inline-box">
                            <div class="icon reading inline-block"></div>
                            <div class="date inline-block">{$item.pv}次浏览</div>
                        </div>
                        <div class="oinfo inline-box">
                            <div class="icon timing inline-block"></div>
                            <div class="date inline-block">{$item.update_time}</div>
                        </div>
                    </div>
                    <div class="desc-line page-box ">
                        {$item.detail}
                    </div>
                </div>
                <div class="cright inline-block">
                    <a href="{:url('detail',array('id'=>$item.id))}" class="detail">查看详情</a>
                </div>
            </div>
        {/foreach}

        <div class="page-box">{$list->render()}</div>
    </div>
{/block}
